<?php
/* @var $this FotosController */
/* @var $model Fotos */
/* @var $form CActiveForm */
?>

<div class="form">


<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id'=>'horizontalForm',
    'type'=>'horizontal',
	'enableAjaxValidation'=>false,
    'htmlOptions' => array('enctype' => 'multipart/form-data'), // ADD THIS
)); ?>


<fieldset>
 
    <legend>Subir fotos:</legend>

	<p class="note">Los campos con <span class="required">*</span> son obligatorios.</p>

	<?php echo $form->errorSummary($model); ?>

		<?php echo $form->dropDownListRow($model, 'idalbum', $model->getAlbum()); //aca tengo que mostrar los nombres y apellido de los amigos que posee el usuario?> 
		<div class="control-group ">
			<label class="control-label required" for="Fotos_idalbum">Fotos: <span class="required">*</span></label>
			<div class="controls">
			<?php 
				$this->widget('CMultiFileUpload', array(
					'name' => 'images',
					'accept' => 'jpeg|jpg|gif|png', // useful for verifying files
					'duplicate' => 'Duplicate file!', // useful, i think
					'denied' => 'Invalid file type', // useful, i think
				));
			?>
			</div>
		</div> 
	</fieldset>
	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'primary', 'label'=>'Subir fotos')); ?>
		<?php //$this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'Reset')); ?>
	</div>
<?php $this->endWidget(); ?>

</div><!-- form -->